
class wilberforce_demos.video.videoButtons extends MovieClip
{
	function videoButtons()
	{
		
	}
	
	function changeState(tState:String)
	{
		switch (tState)
		{
			case "pause":
				gotoAndStop("pause");
				this.onPress=pauseFunction;
				break;
				
			case "buffering":
				gotoAndStop("buffering");
				delete this.onPress;
				break;
				
			case "unpause":
				gotoAndStop("unpause");
				this.onPress=unpauseFunction;
				break;
		}
			
	}
	
	function pauseFunction()
	{
		_parent.pause();
	}
	
	function unpauseFunction()
	{
		trace("Unpausing");
		_parent.unpause();
	}
}